<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico"> 
	<link href="__PUBLIC__/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/page.css" rel="stylesheet">
    <script src="__PUBLIC__/admin/js/jquery.min.js?v=2.1.4"></script>
</head>

<script>
//删除url
var deleteUrl = "{:url('member/delete')}";
var url = "/{$Request.module}/member";
</script>

<body class="gray-bg" >
    <div class="wrapper wrapper-content" id="server">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>会员列表</h5>（共计会员：{$count}人）
                    </div>
                    <div class="ibox-content">
						<div class="row" style="margin-bottom:20px;">
                            <div class="col-sm-5 m-b-xs">
                                <a href="{:url('member/add')}"><button type="button" class="btn btn-sm btn-primary" id="add"><i class="fa fa-plus" style="color:#FFF;"></i>&nbsp;增加用户</button></a>
                            </div>
                            <form action="{:url('member/search')}" method="post" id="form_search">          
                            <div class="col-sm-3" style="float:right;">
                                <div class="input-group">
                                    <input type="text" name="keyword" placeholder="请输入用户手机号" {if condition="(isset($keyword)) AND ($keyword)"}value="{$keyword}"{/if} class="input-sm form-control" /><span class="input-group-btn">
                                    <button type="submit" class="btn btn-sm btn-primary">搜索</button></span>
                                </div>
                            </div>
                           </form>   
                                          
                        </div>
                        <div id="ajaxpagetest">
                        {include file="member/ajaxpage" /}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!-- 全局js -->
    <script src="__PUBLIC__/admin/js/plugins/layer/layer.min.js"></script>
    <script src="__PUBLIC__/admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/admin/js/plugins/validate/jquery.validate.min.js"></script>
    <!-- iCheck -->
    <script src="__PUBLIC__/admin/js/plugins/iCheck/icheck.min.js"></script>
    <script src="__PUBLIC__/admin/js/common/admin.js"></script>    
    <script src="__PUBLIC__/admin/js/common/ajax.js"></script>
    
    <script>
    function qianbaomx(id,obj){
    	var qbmxUrl = "/{$Request.module}/detail/lst/user_id/"+id;
        location.href=qbmxUrl;
    }
    function settuanzhang(id){

        $.ajax({
            url:"{:url('detail/settuanzhang')}",
            type:'POST',
            data:{'user_id':id},
            dataType:'json',
            success:function(res){
                if (res.code){
                    location.reload();
                }else{
                    layer.msg(res.msg);
                }
            },
            error:function(){
                location.reload();
            }
        });
    }

    function addbalance(id,obj) {
        //过滤选择重复信息
        var add_balance_rl = "/{$Request.module}/detail/addbalance/user_id/"+id;
        layer.open({
            type: 2,
            title: '余额充值',
            shadeClose: true,
            shade: 0.3,
            area: ['70%', '80%'],
            content: add_balance_rl,
        });
    }

    function addintegral(id,obj) {
        //过滤选择重复信息
        var add_balance_rl = "/{$Request.module}/detail/addIntegral/user_id/"+id;
        layer.open({
            type: 2,
            title: '积分充值',
            shadeClose: true,
            shade: 0.3,
            area: ['70%', '80%'],
            content: add_balance_rl,
        });
    }

    function addspecies(id,obj) {
        //过滤选择重复信息
        var add_balance_rl = "/{$Request.module}/detail/addSpecies/user_id/"+id;
        layer.open({
            type: 2,
            title: '金币充值',
            shadeClose: true,
            shade: 0.3,
            area: ['70%', '80%'],
            content: add_balance_rl,
        });
    }

    function getyhorder(id,obj){
    	var getorderyyUrl = "/{$Request.module}/yhorder/lst/user_id/"+id;
        location.href=getorderyyUrl;
    }
	</script>

</body>
</html>